"""
Description: 入口文件
Author: 嘎嘣脆的贝爷
Date: 2024-11-03 20:09:07
LastEditTime: 2024-11-03 20:35:50
LastEditors: 嘎嘣脆的贝爷
"""

from ali_cert_agent import AliCertAgent
from ali_dcnd_agent import AliDcdnAgent
from config import config


def main():
    """主函数"""
    print("=" * 50)
    # ssl 证书监控
    aliCertAgent = AliCertAgent()
    cert_info = aliCertAgent.run()
    # dcdn 部署监控
    if config.USE_DCDN:
        aliDcdnAgent = AliDcdnAgent()
        aliDcdnAgent.run(cert_info)
    print("=" * 50)


if __name__ == "__main__":
    main()
